﻿
<%@ Page Language="C#" Theme="PAT_Theme" MasterPageFile="~/master/PAT.master" AutoEventWireup="true"  CodeFile="PatHistoricAttributeByEntity.aspx.cs" Inherits="PatHistoricAttributeByEntity" Title="PatHistoricAttributeByEntity List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="subHeaderContent" Runat="Server">Pat Historic Attribute By Entity List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="mainContent" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="PatHistoricAttributeByEntityDataSource"
				DataKeyNames="EntityName, AttibuteName"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_PatHistoricAttributeByEntity.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<data:HyperLinkField HeaderText="Entity Name" DataNavigateUrlFormatString="PatHistoricEntityEdit.aspx?EntityName={0}" DataNavigateUrlFields="EntityName" DataContainer="EntityNameSource" DataTextField="EntityDescription" />
				<asp:BoundField DataField="AttibuteName" HeaderText="Attibute Name" SortExpression="[ATTIBUTE_NAME]" ReadOnly />
				<asp:BoundField DataField="AttributeLabel" HeaderText="Attribute Label" SortExpression="[ATTRIBUTE_LABEL]"  />
				<asp:BoundField DataField="AttributeOrder" HeaderText="Attribute Order" SortExpression="[ATTRIBUTE_ORDER]"  />
				<data:BoundRadioButtonField DataField="Active" HeaderText="Active" SortExpression="[ACTIVE]"  />
				<asp:BoundField DataField="CreationLogin" HeaderText="Creation Login" SortExpression="[CREATION_LOGIN]"  />
				<asp:BoundField DataField="CreationDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Creation Date" SortExpression="[CREATION_DATE]"  />
				<asp:BoundField DataField="ModificationLogin" HeaderText="Modification Login" SortExpression="[MODIFICATION_LOGIN]"  />
				<asp:BoundField DataField="ModificationDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Modification Date" SortExpression="[MODIFICATION_DATE]"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No PatHistoricAttributeByEntity Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnPatHistoricAttributeByEntity" OnClientClick="javascript:location.href='PatHistoricAttributeByEntityEdit.aspx'; return false;" Text="Agregar Nuevo "></asp:Button>
		<data:PatHistoricAttributeByEntityDataSource ID="PatHistoricAttributeByEntityDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:PatHistoricAttributeByEntityProperty Name="PatHistoricEntity"/> 
					<%--<data:PatHistoricAttributeByEntityProperty Name="PatHistoricCollection" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:PatHistoricAttributeByEntityDataSource>
	    		
</asp:Content>



